import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class Test07 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis=new FileInputStream("D:\\software\\微信图片_20241104170639.jpg");
        FileOutputStream fos=new FileOutputStream("myio\\a.jpg");
        byte[] buffer=new byte[1024];
        int len;
        while((len=fis.read(buffer))!=-1){
            fos.write(buffer,0,len);
        }
        fos.close();
        fis.close();
    }
}
